package com.ddxz.easypoi.controller;

import com.ddxz.easypoi.service.EasyPoiService;
import com.ddxz.tool.web.dto.DdxzResponse;
import org.springframework.web.bind.annotation.RestController;

/**
 * description
 *
 * @author 朱宗刚
 * @version 1.0.0
 * @date 2021/6/5
 */

@RestController
public class EasyPoiController {
    public DdxzResponse exportSingleSheetExcel() {
        return service.exportSingleSheetExcle();
    }

    public DdxzResponse exportMultiSheetExcel() {
        return service.exportMultiSheetExcel();
    }

    private final EasyPoiService service;

    public EasyPoiController(EasyPoiService service) {
        this.service = service;
    }
}
